package com.heima.wemedia.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.heima.model.common.dtos.ResponseResult;
import com.heima.model.wemedia.dtos.WmSensitiveDto;
import com.heima.model.wemedia.pojos.WmSensitive;

/**
 * ClassName: WmSensitiveService
 * Description:
 * date: 2023/8/22 0022 15:32
 *
 * @author zHan
 */
public interface WmSensitiveService extends IService<WmSensitive> {
    /**
     * 查询敏感词列表
     * @param dto
     * @return
     */
    ResponseResult list(WmSensitiveDto dto);

    /**
     * 新增敏感词
     * @param wmSensitive
     * @return
     */
    ResponseResult saveSensitive(WmSensitive wmSensitive);

    /**
     * 删除敏感词
     * @param id
     * @return
     */
    ResponseResult deleteSensitive(Integer id);

    /**
     * 修改敏感词
     * @param wmSensitive
     * @return
     */
    ResponseResult updateSensitive(WmSensitive wmSensitive);
}
